package com.sakura.mall.order.order.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.order.order.domain.entity.OrderEntity;
import com.sakura.mall.order.order.domain.request.AddOrderRequest;
import com.sakura.mall.order.order.domain.request.UpdateOrderRequest;
import com.sakura.mall.order.order.domain.request.OrderPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.order.order.domain.vo.OrderVo;

/**
 * 订单 service
 *
 * @author sakura
 */
public interface OrderService extends IService<OrderEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<OrderVo> queryPage(OrderPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddOrderRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdateOrderRequest request);
}
